.class Lcom/burstly/lib/util/calendar/Rfc3339DateDeserializer;
.super Lcom/burstly/jackson/map/JsonDeserializer;
.source "Rfc3339DateDeserializer.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/jackson/map/JsonDeserializer",
        "<",
        "Ljava/lang/Long;",
        ">;"
    }
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .prologue
    .line 32
    invoke-direct {p0}, Lcom/burstly/jackson/map/JsonDeserializer;-><init>()V

    return-void
.end method

.method private static parseRFC3339Date(Ljava/lang/String;)Ljava/util/Date;
    .locals 1
    .parameter "datestring"

    .prologue
    .line 54
    invoke-static {p0}, Lcom/burstly/lib/util/calendar/Rfc3339Parser;->parseDateString(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public deserialize(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Long;
    .locals 7
    .parameter "arg0"
    .parameter "arg1"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 38
    :try_start_0
    invoke-virtual {p1}, Lcom/burstly/jackson/JsonParser;->getText()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/burstly/lib/util/calendar/Rfc3339DateDeserializer;->parseRFC3339Date(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Date;->getTime()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    .line 44
    :goto_0
    return-object v1

    .line 40
    :catch_0
    move-exception v0

    .line 41
    .local v0, exception:Ljava/lang/Exception;
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v1

    const-string v2, "Rfc3339DateDeserializer"

    const-string v3, "{0} is not a valid RFC3339 date"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-virtual {p1}, Lcom/burstly/jackson/JsonParser;->getText()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 44
    const/4 v1, 0x0

    goto :goto_0
.end method

.method public bridge synthetic deserialize(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"
    .parameter "x1"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 32
    invoke-virtual {p0, p1, p2}, Lcom/burstly/lib/util/calendar/Rfc3339DateDeserializer;->deserialize(Lcom/burstly/jackson/JsonParser;Lcom/burstly/jackson/map/DeserializationContext;)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method
